package sdu.icat.pj.repository;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import sdu.icat.sys.smodel.SysUser;

/**
 * 系统用户仓库
 * @author ljh_2015
 *
 */
@Repository
public interface SysUserRepository extends JpaRepository<SysUser, Long>{

    SysUser findByAccount(String account);
    
    SysUser findByEmail(String email);
    
    SysUser findByPhone(String phone);
    
    List<SysUser> findAll(Specification<SysUser> specification);
}
